package org.dromara.signIn.domain.bo;

import org.dromara.signIn.domain.SignInRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 签到记录业务对象 sign_in_record
 *
 * @author Lion Li
 * @date 2025-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SignInRecord.class, reverseConvertGenerate = false)
public class SignInRecordBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    private String username;

    private Date updateTime;

    /**
     * 关联签到id
     */
    private Long relatedSignId;

    private Long taskId;

    /**
     * 备注
     */
    private String remark;
}
